﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NotaSalidaListForm.aspx.cs"
 Inherits="UILGestion.AlmacenAdmin.NotaSalidaListForm" %>

<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>



<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="~/Control/menuCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>

<%@ Register src="NotaSalidaListGrid.ascx" tagname="NotaSalidaListGrid" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/theme.css" />
</head>
<body>
    <form id="form1" runat="server">
    
     <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"
         EnablePartialRendering="true"
          EnableScriptGlobalization="true">
    </asp:ToolkitScriptManager>
    <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server" />
     <asp:Panel ID="Panel2" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
   <asp:Label ID="Label1" runat="server" Text="LISTA NOTAS SALIDA"
             style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>
   

     <asp:Panel ID="PanelButtom" runat="server"  BackColor="white"     >
 
 
      <table  width="100%">
          <tr>
              <td Width="800px">
              <asp:Panel ID="PaButtom" runat="server"   BackColor="white"  GroupingText="Filtros de busqueda">

              <table cellspacing="1" >
        
                  <tr>
                      <td align="right" width="100px">
                          Motivo:</td>
                      <td width="140px" colspan="2">
                          <asp:DropDownList runat="server"  ID="motivoDDL" Width="200px" AutoPostBack="true" ></asp:DropDownList></td>
                      <td width="80px" align="right">
                          &nbsp;</td>
                      <td width="140px">
                          &nbsp;</td>
                    
                  </tr>
                  <tr>
                      <td align="right">
                          Nro. Nota Salida:</td>
                      <td width="140px">
                          <asp:TextBox ID="notaSalidaTXT" runat="server" Width="150px" AutoPostBack="true"></asp:TextBox>
                      </td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td width="140px">
                          &nbsp;</td>
                  </tr>
                  <tr>
                      <td align="right">
                          Documento:</td>
                      <td width="140px">
                          <asp:TextBox ID="documentoTXT" runat="server" Width="150px" AutoPostBack="true"></asp:TextBox>
                      </td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td width="140px">
                          &nbsp;</td>
                  </tr>
                  <tr >
                      <td align="right">
                          Fecha Inicio:</td>
                      <td width="140px">
                          <asp:TextBox ID="inicioDateTime" runat="server" Width="85px"></asp:TextBox>
                          
                          <asp:ImageButton ID="ImageButton2" runat="Server" 
                              AlternateText="Click aqui para mostrar calendario" 
                              ImageUrl="~/Images/month.gif" Width="16px" />
                          <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                              PopupButtonID="ImageButton2" TargetControlID="inicioDateTime">
                          </asp:CalendarExtender>
                          
                      </td>
                      <td align="right" width="80px">
                          Fecha Fin: </td>
                      <td width="140px">
                          <asp:TextBox ID="finDateTime" runat="server" Width="85px"></asp:TextBox>
                          <asp:ImageButton ID="ImageButton1" runat="Server" 
                              AlternateText="Click aqui para mostrar calendario" 
                              ImageUrl="~/Images/month.gif" Width="16px" />
                          <asp:CalendarExtender ID="CalendarExtender2" runat="server" 
                              PopupButtonID="ImageButton1" TargetControlID="finDateTime">
                          </asp:CalendarExtender>
                      </td>
                  </tr>
                  <tr class="ms-crm-Form-Body">
                      <td align="right">
                          &nbsp;</td>
                      <td width="120px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td width="120px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td align="right">
                          <asp:Button ID="BuscarBtn" runat="server" CssClass="ms-crm-List-Header" 
                              onclick="BuscarBtn_Click" Text="Actualizar" Width="80px" />
                      </td>
                      <td width="100px">
                          <asp:Button ID="nuevoButton" runat="server" CssClass="ms-crm-List-Header" 
                              onclick="nuevoButton_Click" Text="Nuevo" Width="80px" />
                      </td>
                  </tr>
 </table>
 </asp:Panel>
 </td>
      <td>
                  &nbsp;</td>
          </tr>
      </table>
   


</asp:Panel>
 <asp:Panel ID="pnlMain" runat="server" BackColor="White">
  
     <input id="idObra" type="hidden" runat="server" name="idObra" />
     <input id="idAlmacen" type="hidden" runat="server" name="idAlmacen" />

       <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
     <ContentTemplate>

  
     <uc2:NotaSalidaListGrid ID="NotaSalidaListGrid1" runat="server"  DataSourceID="NotaSalidaListODS" />
     <asp:ObjectDataSource ID="NotaSalidaListODS"  runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="getNotaSalidaFiltroList" 
             typeName="BOL.NotaSalidaBL" >
               <SelectParameters>

               
               <asp:querystringparameter  Name="idAlmacen" Type="Int32" querystringfield="idAlmacen"  />
               <asp:ControlParameter Name="idMotivo" Type="Int32" ControlID="motivoDDL"  />
               <asp:ControlParameter Name="documentoRef" Type="String" ControlID="documentoTXT"  />
               <asp:ControlParameter Name="numDocumento" Type="String" ControlID="notaSalidaTXT"  />
                <asp:ControlParameter Name="fechaInicio" Type="DateTime" ControlID="inicioDateTime"  />
                <asp:ControlParameter Name="fechaFin" Type="DateTime" ControlID="finDateTime"  />
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                <asp:Parameter Name="maximumRows" Type="Int32" />
                <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>


                </ContentTemplate>
        <Triggers>
       <asp:AsyncPostBackTrigger ControlID="BuscarBtn" /> 
       <asp:AsyncPostBackTrigger ControlID="motivoDDL" /> 
       <asp:AsyncPostBackTrigger ControlID="notaSalidaTXT" /> 
       <asp:AsyncPostBackTrigger ControlID="documentoTXT" /> 

           </Triggers>
       
     </asp:UpdatePanel>
         </asp:Panel>
    </form>
</body>
</html>
